from tkinter import*
bigt = Tk()
bigt.title('program_7_1.py')
bigt.geometry('500x500')
print('координата X')
a = int(input())
print('координата Y')
b = int(input())
print('коэффицент увеличения')
c = int(input())
if c == 0 and 0 <= a and a <= 500 and 0 <= b and b <= 500:
    pass
elif c > 0 and a >= 0 and b >= 0 and 2 * c + a <= 500 and 3 * c + b <= 500:
    pass
elif c < 0 and  a <= 500 and b <= 500 and 2 * c + a >= 0 and 3 * c + b >= 0:
    pass
else:
    print('Размер фигуры превышает максимальный размер поля')
    exit()
canvas = Canvas(bigt, bg = 'green', width = 500, height = 500)
canvas.create_polygon(0 * c + a, 0 * c + b, 1 * c + a, 0 * c + b, 1 * c + a, 1 * c + b, 2 * c + a, 1 * c + b, 2 * c + a, 2 * c + b, 1 * c + a, 2 * c + b, 1 * c + a, 3 * c + b, 0 * c + a, 3 * c + b, 0 * c + a, 0 * c + b)
canvas.pack()
bigt.mainloop()